package com.ellwood.dataMapper.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fhs.core.trans.vo.TransPojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @ProjectName: ellwood-pro
 * @PackageName: org.ellwood.modules.system.entity
 * @ClassName: JobLogEntity
 * @Description: // 定时任务调度日志表
 * @Author: Ellwood
 * @CreateDate: 2024/2/21 - 13:42
 * @Version: V1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("sys_job_log")
public class JobLogEntity implements Serializable, TransPojo {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 任务日志ID
     */
    @TableId("job_log_id")
    private Long jobLogId;

    /**
     * 任务ID
     */
    private Long jobId;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务组名
     */
    private String jobGroup;

    /**
     * 调用目标字符串
     */
    private String invokeTarget;

    /**
     * 日志信息
     */
    @TableField("job_log_msg")
    private String jobLogMsg;

    /**
     * 异常信息
     */
    private String exceptionInfo;

    /**
     * 执行状态（0正常 1失败）
     */
    @TableField("job_log_state")
    private Integer jobLogState;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 删除时间
     */
    private Date removeTime;

    /**
     * 删除标志(0正常 1删除)
     */
    private Integer removeFlag;

}
